/*    */ package dm.jdbc.xa;
/*    */ 
/*    */ import javax.transaction.xa.XAException;
/*    */ 
/*    */ public class DmdbXid implements javax.transaction.xa.Xid
/*    */ {
/*    */   private int fmtId;
/*    */   private byte[] gTranId;
/*    */   private byte[] bQual;
/*    */   public static final int MAXBQUALSIZE = 64;
/*    */   public static final int MAXGTRIDSIZE = 64;
/*    */   
/*    */   public DmdbXid(int fmtId, byte[] gTranId, byte[] bQual) throws XAException {
/* 14 */     this.fmtId = fmtId;
/*    */     
/* 16 */     if ((gTranId != null) && (gTranId.length > 64)) {
/* 17 */       throw new XAException(-4);
/*    */     }
/* 19 */     this.gTranId = gTranId;
/*    */     
/* 21 */     if ((bQual != null) && (bQual.length > 64)) {
/* 22 */       throw new XAException(-4);
/*    */     }
/* 24 */     this.bQual = bQual;
/*    */   }
/*    */   
/*    */   public int getFormatId() {
/* 28 */     return this.fmtId;
/*    */   }
/*    */   
/*    */   public byte[] getGlobalTransactionId() {
/* 32 */     return this.gTranId;
/*    */   }
/*    */   
/*    */   public byte[] getBranchQualifier() {
/* 36 */     return this.bQual;
/*    */   }
/*    */ }


/* Location:              D:\Program Files\DBMS_20150813\jdbc\Dm7JdbcDriver17.jar!\dm\jdbc\xa\DmdbXid.class
 * Java compiler version: 2 (46.0)
 * JD-Core Version:       0.7.1
 */